package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *  实体类。
 *
 * @author EDY
 * @since 2025-10-24
 */
@Data
@Table("request_log_2025")
public class RequestLog2025 implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @Column(onInsertValue = "now()")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    private Integer httpStatus;

    private String ip;

    private String jsonRequest;

    private String jsonResponse;

    private String method;

    private String name;

    private String requestPath;

    private String requestUrl;

    private String throwException;

    private Double userTime;

}
